﻿var uploadsuccess = function (newpath, upload,vals) {
    $(document).off("click", ".again")
    $("#" + upload).addClass("again-box")
    $("#" + upload + " .ViewSpan").html("<a class='view' href='javascript:void(0);'><img src=''></a> <a href=\"javascript:void(0);\" class='again' ></a>").show();
    $("#" + upload + " iframe").hide();
    $("#" + upload + " .filename").val(newpath)
    // $("#" + upload + " .view").html(newpath);
    $("#" + upload + " .view img").attr('src',vals);
    $("#" + upload + " .view").attr('href',vals);

    $("#" + upload + " .filename").blur();
    $(document).on("click", "#" + upload + " .again", function () {
        $("#" + upload).removeClass("again-box")
        $("#" + upload).find("iframe").attr('src', '../Plugin/FileManage/UploadImgz.html?islarge=' + upload + '');
        $("#" + upload).find("iframe").show();
        $("#" + upload).find(".ViewSpan").html('').hide();
        $("#" + upload).find(".filename").val('');
    })
};